#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main () {
	srand(time(0));
	int task = rand() % 100 + 1;
	int count = 0;
	int n = 0;
	printf("input a mumber");
	scanf("%d", &n);
	while (n != task) {
		if (n > task) {
			count++;
			printf("it big\n");
		} else if (n < task) {
			count++;
			printf("it small\n");
		}
		printf("input a mumber");
		scanf("%d", &n);
	}
	if (n == task) {
		count++;
		printf("you are right\n");
	}
	printf("%d\n", count);
	return 0;
}